package com.yan.token.module;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @author yanheng
 * @data 2020/1/3 14:30
 */
@Entity
@Table(name = "app")
public class App implements Serializable {

    @Id
    @Column(name = "id")
    private String id;
    @Column(name = "app_id")
    private String appId;
    @Column(name = "password")
    private String password;
    @Column(name = "token")
    private String token;

    public App() {
    }

    public App(String id, String appId, String password, String token) {
        this.id = id;
        this.appId = appId;
        this.password = password;
        this.token = token;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }
}
